﻿using System;
using System.Configuration;
namespace eShop.Core
{
    /// <summary>
    /// eShop版本类
    /// </summary>
    public class BSPVersion
    {

        /// <summary>
        /// 系统有效期 运行时常量
        /// </summary>
        public static readonly string SHOP_EXPIRYDATE = RSApublic.GetExpiryDate(ConfigHelper.AppSettings("SN"));
        /// <summary>
        /// 机器码
        /// </summary>
        public static readonly string SHOP_MACHINECODE = RSApublic.GetMachineCode();
        /// <summary>
        /// 公匙 （编译时常量）
        /// </summary>
        public const string PUBLIC_KEYSTR = @"<RSAKeyValue><Modulus>sJSNXb3+DSXdZ5raDgC7OaJ51NZMLxz2PeaVBQswYtwikQJlVYc+fXFFco1GKS5cnseumF4DSqcTCRf89GIOezvqTk3/MgG+820k2b6B+BvtTNnA41eKbd62proa2LlPlnwd9ldUA+sFnQePe7walN3DeCDjKVexNI1WwJVPyvE=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue>";
        /// <summary>
        /// 商城注册码 
        /// </summary>
        public static readonly string SHOP_REGCODE = ConfigHelper.AppSettings("SN");
        /// <summary>
        /// eShop版本号
        /// </summary>
        public const string SHOP_VERSION = "2.0.1";

        /// <summary>
        /// eShop主版本号
        /// </summary>
        public const int SHOP_VERSION_MAJOR_PART = 3;

        /// <summary>
        /// eShop副版本号
        /// </summary>
        public const int SHOP_VERSION_MINOR_PART = 0;

        /// <summary>
        /// eShop测试版本号
        /// </summary>
        public const int SHOP_VERSION_BUILD_PART = 25;

        /// <summary>
        /// eShop名称
        /// </summary>
        public const string SHOP_NAME = "";

        /// <summary>
        /// 此版本eShop发布时间
        /// </summary>
        public const string SHOP_DATETIME = "2016.06.28";

        /// <summary>
        /// eShop版权
        /// </summary>
        public const string SHOP_COPYRIGHT = "@2016";

    }
}
